<?php

namespace App\Libraries\DataBase\Schema;

use Illuminate\Database\Schema\Blueprint;

trait hasDescriptionAttribute
{
    public function hasDescription(Blueprint $table, $column = 'description', $comment = '备注')
    {
        $table->text($column)->nullable()->comment($comment);
    }
}
